﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true"
    CodeBehind="wFrmCreditoClienteGarantia.aspx.cs" Inherits="Crosland.Automotriz.Web.Repuestos.wFrmCreditoClienteGarantia" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxPivotGrid.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPivotGrid" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <div class="main-header" style="width: 100%;">
        <div class="main-titulo" style="text-align: left">
            Crédito cliente garantía</div>
    </div>
    <div class="main-content">
        <table>
            <tr>
                <td>
                    <dx:ASPxButton ID="btnNuevo" runat="server" Text="Nuevo" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        Width="100px" OnClick="btnNuevo_Click">
                    </dx:ASPxButton>
                </td>
                <td>
                    <dx:ASPxButton ID="btnModificar" runat="server" Text="Modificar" AutoPostBack="False"
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100px"
                        OnClick="btnActualizar_Click">
                    </dx:ASPxButton>
                </td>
                <td>
                    <dx:ASPxButton ID="btnSalir" runat="server" Text="Salir" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        Width="100px" OnClick="btnSalir_Click">
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>
        <div>
            
            <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="900px" HeaderText=""
                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px"
                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" View="GroupBox">
                <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                <HeaderStyle>
                    <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                </HeaderStyle>
                <PanelCollection>
                    <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                        <dx:ASPxGridView ID="grdCreditoClienteGarantia" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                            CssPostfix="Office2010Blue" Width="100%" AutoGenerateColumns="False" 
                            KeyFieldName="ID_CRE_CLIENTE_GARANTIA" 
                            OnAfterPerformCallback="grdCreditoClienteGarantia_AfterPerformCallback" 
                            OnPageIndexChanged="grdCreditoClienteGarantia_PageIndexChanged">
                            <Columns>
                                <dx:GridViewDataTextColumn Caption="Cliente" FieldName="DES_CLIENTE" VisibleIndex="1">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="Tipo credito" FieldName="TIPO_CREDITO" VisibleIndex="2">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="Empresa beneficiado" FieldName="DES_ORG_VTA"
                                    VisibleIndex="3">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewBandColumn Caption="Modalidad" VisibleIndex="4">
                                    <Columns>
                                        <dx:GridViewDataTextColumn Caption="Valor S/." FieldName="IMP_AUTORIZADO_SOLES" 
                                            VisibleIndex="0">
                                        <PropertiesTextEdit DisplayFormatString="##,##0.00" >                                        
                                        </PropertiesTextEdit>
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Unidad 2R" VisibleIndex="2" 
                                            FieldName="NRO_MAX_UNID_2R">                                       
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Valor $" FieldName="IMP_AUTORIZADO_DOLARES" 
                                            ShowInCustomizationForm="True" VisibleIndex="1">
                                               <PropertiesTextEdit DisplayFormatString="##,##0.00" >                                        
                                        </PropertiesTextEdit>
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Unidad 3R" FieldName="NRO_MAX_UNID_3R" 
                                            ShowInCustomizationForm="True" VisibleIndex="3">
                                        </dx:GridViewDataTextColumn>
                                    </Columns>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </dx:GridViewBandColumn>
                                <dx:GridViewDataTextColumn Caption="Fec.Vencimiento" FieldName="FEC_VENCIMIENTO"
                                    VisibleIndex="5">
                                    <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                                    </PropertiesTextEdit>
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="Banco" FieldName="DES_BANCO" VisibleIndex="6">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="ID_CRE_CLIENTE_GARANTIA" ShowInCustomizationForm="True"
                                    Visible="False" VisibleIndex="0">
                                </dx:GridViewDataTextColumn>
                            </Columns>
                            <SettingsBehavior AllowFocusedRow="True" />
                            <SettingsPager PageSize="20">
                            </SettingsPager>
                            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                </LoadingPanelOnStatusBar>
                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                </LoadingPanel>
                            </Images>
                            <ImagesFilterControl>
                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                </LoadingPanel>
                            </ImagesFilterControl>
                            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                </Header>
                                <LoadingPanel ImageSpacing="5px">
                                </LoadingPanel>
                            </Styles>
                            <StylesPager>
                                <PageNumber ForeColor="#3E4846">
                                </PageNumber>
                                <Summary ForeColor="#1E395B">
                                </Summary>
                            </StylesPager>
                            <StylesEditors ButtonEditCellSpacing="0">
                                <ProgressBar Height="21px">
                                </ProgressBar>
                            </StylesEditors>
                        </dx:ASPxGridView>
                    </dx:PanelContent>
                </PanelCollection>
            </dx:ASPxRoundPanel>
        </div>
        <div>
            <dx:ASPxPopupControl ID="popupErrores" runat="server" AllowDragging="True" ClientInstanceName="popupErrores"
                CloseAction="CloseButton" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                CssPostfix="Office2010Blue" EnableViewState="False" HeaderText="Mensaje" Modal="True"
                PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                Width="300px" EnableHotTrack="False">
                <HeaderImage Url="~/Images/icon_message.png">
                </HeaderImage>
                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                </LoadingPanelImage>
                <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                </HeaderStyle>
                <LoadingPanelStyle ImageSpacing="5px">
                </LoadingPanelStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl3" runat="server" SupportsDisabledAttribute="True">
                        <br />
                        <dx:ASPxPanel ID="ASPxPanel4" runat="server" DefaultButton="btCreate">
                            <PanelCollection>
                                <dx:PanelContent ID="PanelContent3" runat="server">
                                    <table width="100%">
                                        <tr>
                                            <td align="center" valign="middle">
                                                <asp:Label ID="lblMensaje" runat="server"></asp:Label>
                                                <br />
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                                                <dx:ASPxButton ID="ASPxButton6" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    Text="Aceptar" Width="10px">
                                                    <ClientSideEvents Click="function(s, e) {
	popupErrores.Hide();
}" />
                                                    <Image Url="~/Images/ok.png">
                                                    </Image>
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxPanel>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
        </div>
    </div>
</asp:Content>
